#ifndef PLATFORM_H_
#define PLATFORM_H_

#include <stdint.h>

typedef int8_t Int8;
typedef uint8_t UInt8;

typedef int16_t Int16;
typedef uint16_t UInt16;

typedef int32_t Int32;
typedef uint32_t UInt32;

typedef int64_t Int64;
typedef uint64_t UInt64;

#if defined(__APPLE__) && defined(__GNUC__)
#define OS_MACX
#elif defined(__MACOSX__)
#define OS_MACX
#elif !defined(SAG_COM) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__))
#define OS_WIN32
#define OS_WIN64
#elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__))
#define OS_WIN32
#elif defined(__MWERKS__) && defined(__INTEL__)
#define OS_WIN32
#elif defined(__linux__) || defined(__linux)
#define OS_LINUX
#endif

#endif /* PLATFORM_H_ */

